from django.db import models

from course.models import CourseModel
from user.models import UserModel
# Create your models here.
from utils.basemodel import BaseModel


class CartModel(BaseModel):
    user = models.ForeignKey(to=UserModel,on_delete=models.CASCADE)
    course = models.ForeignKey(to=CourseModel,on_delete=models.CASCADE)
    select = models.BooleanField(default=True)
    class Meta:
        db_table='fgcart'
    def __str__(self):
        return self.user